# encoding: utf-8
from flask_marshmallow import base_fields
from flask_restplus_patched import Parameters


class Default(Parameters):
    pass


class LoginParameters(Parameters):
    user_name = base_fields.String(
        description = "用户名",
        required = True,
    )
    user_pass = base_fields.String(
        description = "密码(明文密码，后台加密)",
        required = True,
    )


class LoginStatusParameters(Parameters):
    user_id = base_fields.String(
        description = "用户ID",
        required = True,
    )
    token_id = base_fields.String(
        description = "登陆ID",
        required = True,
    )


class LoginUserInfoParameters(Parameters):
    token_id = base_fields.String(
        description = "登陆ID",
        required = True,
    )
